package main

import (
	"net"
)

type TcpTrans struct {
	SourceConn *net.Conn
	Value      []byte
	TargetAddr string
}

func (t *TcpTrans) GetSourceConn() net.Conn {
	return *t.SourceConn
}

func (t *TcpTrans) GetTargetConn() (net.Conn, error) {
	return net.Dial("tcp", t.TargetAddr)
}
